package com.cloudkinto.service.orderback;

import com.cloudkinto.entity.FbaOrderBackDo;
import com.baomidou.mybatisplus.extension.service.IService;

import com.cloudkinto.common.web.PageResult;
import com.cloudkinto.common.web.SingleResult;
import com.cloudkinto.service.orderback.vo.FbaOrderBackAddReq;
import com.cloudkinto.service.orderback.vo.FbaOrderBackDetailRes;
import com.cloudkinto.service.orderback.vo.FbaOrderBackPageRes;
import com.cloudkinto.service.orderback.vo.FbaOrderBackUpdateReq;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  service接口
 * </p>
 * @author ding
 * @since 2023-08-02
 */
public interface FbaOrderBackService extends IService<FbaOrderBackDo> {

    SingleResult addInit();

    Object add(FbaOrderBackAddReq req, Long userId);

    SingleResult updateInit(Long id);

    Object update(FbaOrderBackUpdateReq updateVo, Long userId);

    int delete(Long id, Long userId);

    FbaOrderBackDetailRes detail(Long id);

    SingleResult pageInit();

    List<FbaOrderBackPageRes> getList(Map<String, String> map);

    PageResult getListPage(Map<String, String> map);
}
